package com.system;

import android.app.Application;
import android.content.Context;
import android.view.WindowManager;

/**
 * @Author: clm
 * @Date: 2018-10-27
 */

public class GLApplication extends Application {
    private static Context sContext;
    public static int sWidth;
    public static int sHeight;

    @Override
    public void onCreate() {
        super.onCreate();
        sContext = this;
        WindowManager wm = (WindowManager) sContext.getSystemService(Context.WINDOW_SERVICE);
        sWidth = wm.getDefaultDisplay().getWidth();
        sHeight = wm.getDefaultDisplay().getHeight();
    }

    public static Context getContext() {
        return sContext;
    }
}
